home *** CD-ROM | disk | FTP | other *** search
- <!--
- function visByClass(className, state)
- {
- if (document.getElementsByTagName) { //check for obj
- var nodes = document.getElementsByTagName("DIV");
- for (var i = 0;i < nodes.length;i++) {
- var nodeObj = nodes.item(i);
- var attrMax = nodeObj.attributes.length
- for (var j = 0; j < attrMax; j++) {
- if (nodeObj.attributes.item(j).nodeName == 'class') {
- if (nodeObj.attributes.item(j).nodeValue == className) {
- vista = (state) ? 'block' : 'none';
- nodeObj.style.display = vista;
- }
- }
- }
- }
- }
- var nodes = document.getElementsByTagName("SPAN");
-
- var max = nodes.length
- for (var i = 0;i < max;i++) {
- var nodeObj = nodes.item(i);
- for (var j = 0; j < nodeObj.attributes.length; j++) {
- if (nodeObj.attributes.item(j).nodeName == 'class') {
- if (nodeObj.attributes.item(j).nodeValue == className) {
- vista = (state) ? 'block' : 'none';
- nodeObj.style.display = vista;
- }
- }
- }
- }
- }
-
-
-
-
-
- // Pop A Window
- function MM_openBrWindow(theURL,winName,features) { //v2.0
- window.open(theURL,winName,features);
- }
-
-
- // Redirect user with the item selected with a drop-down menu
- function redirect(categoryName, selectedItem)
- {
- //window.location.href = "http://www.apple.com";
- //alert(categoryName);
- var q = selectedItem.indexOf("WONoSelectionString");
- //alert(q);
- if ( q == 0 ) {
- //user selected the first item, so take them back to the page listing all docs
- //you have to somehow pass in the name of the category
- //alert("../" + categoryName + "/" + categoryName + "-date.html");
- window.location.href = "../" + categoryName + "/" + categoryName + "-date.html";
- } else {
- window.location.href = selectedItem;
- }
- }
- //-->